//
//  StateRecordTableView.m
//  WorkNest
//
//  Created by qbm360 on 15/9/1.
//  Copyright (c) 2015年 nest. All rights reserved.
//

#import "StateRecordTableView.h"
@interface StateRecordTableView ()

@property (strong, nonatomic) IBOutlet UIView *view;
@property (weak, nonatomic) IBOutlet UILabel *executor;
@property (weak, nonatomic) IBOutlet UILabel *content;
@property (weak, nonatomic) IBOutlet UILabel *number;
@property (weak, nonatomic) IBOutlet UILabel *time;

@end

@implementation StateRecordTableView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setup];
    }
    return self;
}

- (id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super initWithCoder:aDecoder];
    if(self) {
        [self setup];
    }
    return self;
}

- (void)setup
{
    [[NSBundle mainBundle] loadNibNamed:@"StateRecordTableView" owner:self options:nil];
    _view.frame = self.bounds;
    [self addSubview:_view];
}

- (void)setModel:(StatusRecordModel *)model {
    _model = model;
    self.executor.text = _model.executor;
    self.number.text = _model.number;
    self.content.text = _model.content;
    self.time.text = _model.time;
}

@end
